package org.eclipse.stp.policy_builder.model.source.types;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class UrlParameter extends AbstractParamType{
	private Text sourceFileField;
	private Label label_1;
	private Button button;
	public UrlParameter(String type) {
		// TODO Auto-generated constructor stub
		super(type);
	}

	@Override
	public void createTypeControl(Composite container) {
		// TODO Auto-generated method stub
		  label_1 = new Label(container, SWT.NONE);
	      final GridData gridData_1 = new GridData(GridData.HORIZONTAL_ALIGN_END);
	      label_1.setLayoutData(gridData_1);
	      
	      sourceFileField = new Text(container, SWT.BORDER);
	      sourceFileField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

	      button = new Button(container, SWT.NONE);
	      button.setText("Browse...");
		
	}
	
	public Button getBrowseButton(){
		return button;
	}
	
	public Label getKeyLabel(){
		return label_1;
	}
	
	public Text getInputText(){
		return sourceFileField;
	}
	
}
